package com.example.chandao.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrCode {

    SUCCESS(200, "操作成功"),
    WARNING(400, "业务异常，请联系管理员处理"),
    PARAM_ERROR(400, "参数错误"),
    NOT_ALLOW_OPT(400, "不允许的操作"),
    UNAUTHORIZED(401, "未登录或已过期"),
    UNAUTHORIZED_MOVE(402, "未登录或已过期"),
    UNAUTHORIZED_APP(405, "未登录或已过期"),
    NOT_PROJECT_APP(406, "在当前项目下未授权"),
    NOT_SITE_MOVE(407, "当前用户未参与任何项目或机构"),
    FORBIDDEN(403, "没有权限操作"),

    DATA_ERROR(500, "数据错误，请联系管理员处理"),
    SYS_ERROR(500, "系统错误，请联系管理员处理"),

    ;

    private final Integer code;

    private final String msg;

}
